serialize xml as array C#

90

serialize xml as array C# -

<?xml version="1.0" encoding="utf-8"?>
<sheet>
  <rows>
    <row>1</row>
    <row>2</row>
  </rows>
</sheet>


[XmlRoot("sheet")]
public class Sheet
{
    [XmlArray("rows")]
    [XmlArrayItem("row")] 
    public Row[] Rows;
}

Comments

Submit
0 Comments